import request from "@/utils/request";
import router from "@/router";

// 查询数据报告列表
export function listBsDataReport(query) {
  return request({
    url: "/syrw/bsDataReport/list",
    method: "get",
    params: query
  });
}

// 查询数据报告详细
export function getBsDataReport(reportId) {
  return request({
    url: "/syrw/bsDataReport/" + reportId,
    method: "get"
  });
}

// 新增数据报告
export function addBsDataReport(data) {
  return request({
    url: "/syrw/bsDataReport",
    method: "post",
    data: data
  });
}

// 修改数据报告
export function updateBsDataReport(data) {
  return request({
    url: "/syrw/bsDataReport",
    method: "put",
    data: data
  });
}

// 复制数据报告
export function copyBsDataReport(data) {
  return request({
    url: "/syrw/bsDataReport/copy",
    method: "put",
    data: data
  });
}

// 删除数据报告
export function delBsDataReport(reportId) {
  return request({
    url: "/syrw/bsDataReport/" + reportId,
    method: "delete"
  });
}

// 跳转填报页面
export function goToTb(row) {}
// 报表填报
export function bsDataReportTb(data) {
  return request({
    url: "/syrw/bsDataReport/tb",
    method: "put",
    data: data
  });
}
// 加减页
export function bsDataReportModPages(data) {
  return request({
    url: "/syrw/bsDataReport/modPages",
    method: "post",
    data: data
  });
}
// 获取报告二维码源串
export function getBsDataReportQrcode(reportId) {
  return request({
    url: "/syrw/bsDataReport/qrcode/" + reportId,
    method: "get"
  });
}
